package com.jia.lidao.enity;

public class ShareInformation {

    /**
     * err_code : 0
     * err_msg : OK
     * timestamp : 1513511013
     * invitation : {"id":4,"invitation_code":"055936","total_invite":0,"total_commission":0}
     * rule : 这个是分享有礼的活动规则
     * share : {"title":"粒到农资","desc":"分享享好礼","icon":"http://www.icon.com","link":"http://www.baidu.com"}
     */

    private int err_code;
    private String err_msg;
    private int timestamp;
    private InvitationBean invitation;
    private String rule;
    private ShareBean share;

    public int getErr_code() {
        return err_code;
    }

    public void setErr_code(int err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }

    public InvitationBean getInvitation() {
        return invitation;
    }

    public void setInvitation(InvitationBean invitation) {
        this.invitation = invitation;
    }

    public String getRule() {
        return rule;
    }

    public void setRule(String rule) {
        this.rule = rule;
    }

    public ShareBean getShare() {
        return share;
    }

    public void setShare(ShareBean share) {
        this.share = share;
    }

    public static class InvitationBean {
        /**
         * id : 4
         * invitation_code : 055936
         * total_invite : 0
         * total_commission : 0
         */

        private int id;
        private String invitation_code;
        private int total_invite;
        private double total_commission;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getInvitation_code() {
            return invitation_code;
        }

        public void setInvitation_code(String invitation_code) {
            this.invitation_code = invitation_code;
        }

        public int getTotal_invite() {
            return total_invite;
        }

        public void setTotal_invite(int total_invite) {
            this.total_invite = total_invite;
        }

        public double getTotal_commission() {
            return total_commission;
        }

        public void setTotal_commission(double total_commission) {
            this.total_commission = total_commission;
        }
    }

    public static class ShareBean {
        /**
         * title : 粒到农资
         * desc : 分享享好礼
         * icon : http://www.icon.com
         * link : http://www.baidu.com
         */

        private String title;
        private String desc;
        private String icon;
        private String link;

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public String getIcon() {
            return icon;
        }

        public void setIcon(String icon) {
            this.icon = icon;
        }

        public String getLink() {
            return link;
        }

        public void setLink(String link) {
            this.link = link;
        }
    }
}